package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int delete(Long id);

    int insert(Customer customer);

    Customer select(Long id);

    List<Customer> list();

    int update(Customer customer);

    List<Customer> selectForList(QueryObject qo);

    void updateStatus(@Param("customerId") Long customerId, @Param("status") int status);

    void updateSeller(@Param("customerId") Long customerId, @Param("newSellerId") Long newSellerId);

    List<Customer> selectByStatus(int status);
}